/* User Profiles */

.profile-header {
  border-bottom: 1px solid #eee;
  padding: 25px 0;
  //font-family: PNR;
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: $break-tablet-min) {
  .profile-header {
    flex-wrap: nowrap;
  }
}

.profile-header .profile-info {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
}

.profile-avatar {
  position: relative;
  margin-right: 10px;
}

[dir=rtl] .profile-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-avatar .avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
}

.profile-avatar-agent:after {
  background-color: transparent;
  background-image: url("/hc/assets/agent-marker.png");
  background-image: url("/hc/assets/agent-marker.svg");
  background-repeat: no-repeat;
  background-size: 15px;
  position: absolute;
  width: 15px;
  height: 15px;
  content: "";
  bottom: 0;
  right: 0;
}

[dir=rtl] .profile-avatar-agent:after {
  left: 0;
}

.profile-header .basic-info {
  justify-content: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.profile-header .basic-info .name {
  margin: 0;
}

.profile-header .options {
  display: flex;
  flex-basis: 100%;
  margin-top: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-header .options :not(:last-child) {
  margin-bottom: 10px;
}

@media (min-width: $break-tablet-min) {
  .profile-header .options {
    flex-wrap: nowrap;
    flex-basis: auto;
    margin-top: 0;
  }
  .profile-header .options :not(:last-child) {
    margin-bottom: 0;
    margin-right: 10px;
  }
  [dir=rtl] .profile-header .options :not(:last-child) {
    margin-left: 10px;
    margin-right: 0;
  }
}

.profile-header .options [data-action="edit-profile"] {
  background: #444;
  border-color: #444 transparent #222;
  color: #fff;
  flex-basis: 100%;
  text-align: center;
}

.profile-header .description {
  margin: 15px 0;
  flex-basis: 100%;
}

.profile-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
}

.profile-stats .stat {
  display: flex;
  margin-bottom: 10px;
}

.profile-stats .stat-label {
  color: #999;
  flex: 0 0 100px;
  margin-right: 10px;
}

[dir=rtl] .profile-stats .stat-label {
  margin-left: 10px;
  margin-right: 0;
}

.profile-stats-activity {
  border-top: solid 1px #ddd;
}

@media (min-width: $break-tablet-min) {
  .profile-stats-activity {
    border-top: 0;
    flex-direction: row;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-activity .stat {
    flex-direction: column;
  }
}

.profile-stats-activity .stat:first-child {
  margin-top: 10px;
}

@media (min-width: $break-tablet-min) {
  .profile-stats-activity .stat:first-child {
    margin-top: 0;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-activity .stat:not(:last-child) {
    margin-right: 40px;
  }
  [dir=rtl] .profile-stats-activity .stat:not(:last-child) {
    margin-left: 40px;
    margin-right: 0;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-activity .stat-label {
    flex: 0 1 auto;
  }
}

.profile-stats-counters {
  border-bottom: solid 1px #ddd;
}

@media (min-width: $break-tablet-min) {
  .profile-stats-counters {
    flex: 0 0 200px;
    border-bottom: 0;
    margin-left: 40px;
  }
  [dir=rtl] .profile-stats-counters {
    margin-left: 0;
    margin-right: 40px;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters {
    flex: 0 0 270px;
    margin-left: 60px;
  }
  [dir=rtl] .profile-stats-counters {
    margin-right: 60px;
    margin-left: 0;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-counters .stat {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters .stat {
    flex-direction: row;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-counters .stat:not(:last-child) {
    margin-bottom: 15px;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-stats-counters .stat-label {
    flex: 0 1 auto;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters .stat-label {
    flex: 0 0 100px;
  }
}

.profile-private-badge {
  flex-basis: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #999;
  padding: 5px 10px;
}

.profile-private-badge:after {
  content: "\1f512";
  font-family: "Entypo";
  margin-left: 5px;
}

@media (min-width: $break-tablet-min) {
  .profile-private-badge {
    flex-basis: auto;
  }
}

.profile-nav {
  margin-bottom: 40.5px;
  border-bottom: 1px solid #eee;
  padding: 10.5px 0;
}

.profile-section {
  width: 100%;
  //font-family: PNR;
}

@media (min-width: 1024px) {
  .profile-section {
    width: calc(100% - 330px);
  }
}

.profile-section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.profile-section-title {
  flex-basis: 100%;
  margin: 0;
}

.profile-section-description {
  flex-basis: 100%;
  padding: 10px 0;
}

@media (min-width: $break-tablet-min) {
  .profile-section-description {
    flex: 1 0 auto;
    padding-bottom: 0;
  }
}

.profile-section-sorter {
  flex-basis: 100%;
  border-top: solid 1px #eee;
}

.profile-section-sorter .dropdown-toggle {
  padding: 10px 0;
  width: 100%;
}

.profile-section-sorter .dropdown-toggle::after {
  position: absolute;
  right: 0;
}

[dir=rtl] .profile-section-sorter .dropdown-toggle::after {
  left: 0;
  right: initial;
}

@media (min-width: $break-tablet-min) {
  .profile-section-sorter .dropdown-toggle::after {
    position: relative;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-section-sorter {
    flex: 0 1 auto;
    padding-top: 0;
    border-top: 0;
  }
}

.profile-contribution {
  padding: 20px 0;
  word-wrap: break-word;
  position: relative;
}

.profile-contribution-header {
  margin-bottom: 5px;
}

.profile-contribution-title {
  margin: 0 0 5px 0;
  display: inline;
  line-height: 21px;
  vertical-align: middle;
}

.profile-contribution-breadcrumbs > li {
  display: inline;
  word-wrap: break-word;
}

.profile-contribution-body {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.5;
}

.profile-contribution-meta {
  display: flex;
  font-size: 11px;
  line-height: 18px;
  color: #ccc;
}

.profile-contribution-meta > .meta-data:not(:last-child)::after {
  content: "\00B7";
  padding: 0 5px;
}

.profile-contribution-list > .profile-contribution {
  border-top: 1px solid #eee;
}

@media (min-width: $break-tablet-min) {
  .profile-contribution-list > .profile-contribution {
    padding-left: 33px;
  }
  [dir=rtl] .profile-contribution-list > .profile-contribution {
    padding-right: 33px;
    padding-left: 0;
  }
}

.profile-contribution-list > .profile-contribution:last-child {
  border-bottom: 1px solid #eee;
}

.profile-contribution-list > .profile-contribution::before {
  left: 0;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  content: "";
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: 50% 50%;
}

.profile-contribution-list .profile-contribution-header {
  margin-left: 33px;
}

[dir=rtl] .profile-contribution-list .profile-contribution-header {
  padding-right: 33px;
  padding-left: 0;
}

@media (min-width: $break-tablet-min) {
  .profile-contribution-list .profile-contribution-header {
    margin-left: 0;
  }
  [dir=rtl] .profile-contribution-list .profile-contribution-header {
    padding-right: 0;
  }
}

.profile-comments .profile-contribution-breadcrumbs {
  margin-left: 33px;
}

[dir=rtl] .profile-comments .profile-contribution-breadcrumbs {
  padding-right: 33px;
  padding-left: 0;
}

@media (min-width: $break-tablet-min) {
  .profile-comments .profile-contribution-breadcrumbs {
    margin-left: 0;
  }
  [dir=rtl] .profile-comments .profile-contribution-breadcrumbs {
    padding-right: 0;
  }
}

.profile-section .no-activity,
.profile-section .private-activity {
  display: block;
  margin-top: 40px;
  color: #999;
}

.profile-section .private-activity:before {
  content: "\1f512";
  font-family: "Entypo";
  margin-right: 10px;
}

.profile-activity-list {
  margin-top: 25px;
}

.profile-activity {
  position: relative;
  padding-bottom: 30px;
}

@media (min-width: $break-tablet-min) {
  .profile-activity {
    padding-left: 20px;
  }
  [dir=rtl] .profile-activity {
    padding-right: 20px;
    padding-left: 0;
  }
}

@media (min-width: $break-tablet-min) {
  .profile-activity:not(:last-child) {
    border-left: 1px solid #ddd;
  }
  [dir=rtl] .profile-activity:not(:last-child) {
    border-left: 0;
    border-right: 1px solid #ddd;
  }
}

.profile-activity-header {
  display: flex;
  align-items: center;
  margin-left: 35px;
}

[dir=rtl] .profile-activity-header {
  margin-left: 0;
  margin-right: 35px;
}

@media (min-width: $break-tablet-min) {
  .profile-activity-header {
    margin-left: 0;
  }
  [dir=rtl] .profile-activity-header {
    margin-right: 0;
  }
}

.profile-activity-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

[dir=rtl] .profile-activity-header .avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-activity-description {
  margin: 0;
}

.profile-activity-description span:first-child {
  font-weight: bold;
  display: block;
}

@media (min-width: $break-tablet-min) {
  .profile-activity-description span:first-child {
    display: inline;
  }
}

.profile-activity-contribution {
  padding: 20px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
}

@media (min-width: $break-tablet-min) {
  .profile-activity-contribution {
    margin-top: 0;
    margin-left: 50px;
  }
  [dir=rtl] .profile-activity-contribution {
    margin-left: 0;
    margin-right: 50px;
  }
}

.profile-activity:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 40px;
  border-radius: 50%;
  content: "";
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: 50% 50%;
}

[dir=rtl] .profile-activity:before {
  right: 0;
}

@media (min-width: $break-tablet-min) {
  .profile-activity:before {
    left: -14px;
  }
  [dir=rtl] .profile-activity:before {
    right: -14px;
  }
}

.profile-contribution-list > .profile-contribution::before {
  left: 0;
  top: 16px;
  width: 28px;
  line-height: 28px;
}

[dir=rtl] .profile-contribution-list > .profile-contribution::before {
  right: 0;
}

.profile-articles > .profile-contribution::before,
.profile-activity-list > li[class$="-article"]:before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='#ccc'><path d='M54.8 0H9.2a3 3 0 0 0-3 3V61a3 3 0 0 0 3 3H54.8a3 3 0 0 0 3-3V3A3 3 0 0 0 54.8 0Zm-3 58H12.3V6h39.5V58Z'/><path d='M21.7 22.6H42.4a3 3 0 0 0 0-6H21.7A3 3 0 1 0 21.7 22.6Z'/><path d='M21.7 35H42.4a3 3 0 0 0 0-6H21.7A3 3 0 1 0 21.7 35Z'/><path d='M21.7 47.4H42.4a3 3 0 0 0 0-6H21.7A3 3 0 1 0 21.7 47.4Z'/></g></svg>");
}

.profile-posts > .profile-contribution::before,
.profile-activity-list > li[class$="-post"]:before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' data-name='Layer 1' viewBox='0 0 64 64'><g fill='#ccc'><path d='M17 17.5H46.8a3 3 0 0 0 0-6H17A3 3 0 0 0 17 17.5Z'/><path d='M46.9 23.1H17.1a3 3 0 0 0 0 6H46.9A3 3 0 0 0 46.9 23.1Z'/><path d='M17 40.8H46.8a3 3 0 0 0 0-6H17A3 3 0 0 0 17 40.8Z'/><path d='M60.2 0H3.8a3 3 0 0 0-3 3V51.2a3 3 0 0 0 3 3H37.6l6.7 8.6a3 3 0 0 0 4.8 0l6.7-8.6H60.2a3 3 0 0 0 3-3V3A3 3 0 0 0 60.2 0Zm-3 48.2H54.2a3 3 0 0 0-2.4 1.2l-5.2 6.7-5.2-6.7A3 3 0 0 0 39 48.2H6.8V6H57.2V48.2Z'/></g></svg>");
}

.profile-comments > .profile-contribution::before,
.profile-activity-list > li[class$="-comment"]:before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='#ccc'><path d='M46.7 64a2.9 2.9 0 0 1-0.6-0.1c-6.6-1.4-11.8-7.1-14-9.8H32C15.9 54.2 2.8 42 2.8 27.1S15.9 0 32 0 61.2 12.2 61.2 27.1A26.7 26.7 0 0 1 47.5 50a50.3 50.3 0 0 0 2.1 10A3 3 0 0 1 46.7 64Zm-4.5-8.4a27 27 0 0 1-0.7-7.7 3 3 0 0 1 1.7-2.4c7.4-3.7 12-10.8 12-18.4C55.1 15.5 44.8 6 32 6s-23.1 9.4-23.1 21 10.4 21 23.1 21c0.4 0 0.8 0 1.1 0A3.3 3.3 0 0 1 36 49.4 32 32 0 0 0 42.2 55.6Z'/></g></svg>");
}
